package cn.itcast.client;

import cn.itcast.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO
 *
 * @Author mr.wu
 * @Date 2025/1/3 11:46
 */
@FeignClient("userservice")
public interface UserClient {
    @GetMapping("/user/now")
    User findById(@PathVariable("id") Long id);
}
